Primary links
- Home
- All Comments
- All Customizations
- All Messages
- Attendance
- Dashboards
- Drop Down Lists
- Grading
- Misc. Files
- Obsolete
- PHP Customizations
- Parent/Student Pages
- Reports
- Scheduling
- Seating Charts
- Security
- Server Scripts
- State Specific
- Student
- Teachers
- Tips & How To's
- Verification Pages
- Links
- About
- Contact
Comments
setting alias to blank
Hi Jason,
MAX(CASE WHEN f.Name='allergies' THEN to_char(cvc.Value) ELSE '' END) AS allergies,
In the above statement, do you think the "ELSE '' END" work or do I need the word null "ELSE null END"?
THANKS for ALL you HELP!
Naomi Doughty
MSAD#9
re: setting alias to blank
I'd use the word null. Also, Oracle doesn't like AS so remove that.
It appears you are looking up a custom field. May I also suggest...
(SELECT string_value FROM pvsis_custom_students WHERE studentid = [whatever you called students].id AND field_name = 'allergies') allergies
This method will allow you to remove your left outer join and removes the need to do the grouping just to get the one field to look right. Just a thought.
Jason Treadwell
Custom Solutions Specialist
jason@powerdatasolutions.org
www.powerdatasolutions.org
Thanks so much for all the ORACLE info!
Naomi Doughty
MSAD#9