Posts Topics Forums Images
Search videos from message boards Videos Search messages from microblogs Microblogs Search messages from imdb.com Imdb Search messages from yuku.com Yuku Search messages from lefora.com (free forums) Lefora
My account: Login | Sign Up
Loading... 

Thread: Query Help

Started 1 month, 1 week ago by sunfire
Hello, I'm not sure what function I'm looking for but what I'm wanting to do is group all of the a.version by NULL vs Not NULL no matter what the version value is. What do I need to do? select c.name, c.address, a.version From clients c Left Join app_Info a ON c.uid = a.uid
Site: dBforums - Database Support Community  dBforums - Database Support Community - site profile
Forum: MySQL  MySQL - forum profile
Total authors: 6 authors
Total thread posts: 5 posts
Thread activity: no new posts during last week
Domain info for: dbforums.com

Other posts in this thread:

mnirwan replied 1 month, 1 week ago
Code: select c.name, c.address, IF(a.version IS NULL, 'version null', 'version not null') as version From clients c Left Join app_Info a ON c.uid = a.uid GROUP BY 3

mnirwan mnirwan is offline Registered User replied 1 month, 1 week ago
Code: select c.name, c.address, IF(a.version IS NULL, 'version null', 'version not null') as version From clients c Left Join app_Info a ON c.uid = a.uid GROUP BY 3

r937 replied 1 month, 1 week ago
Code: SELECT c.name , c.address , a.version FROM clients c LEFT OUTER JOIN app_Info a ON a.uid = c.uid ORDER BY a.version all the NULL versions will be grouped together

r937 r937 is online now SQL Consultant replied 1 month, 1 week ago
Code: SELECT c.name , c.address , a.version FROM clients c LEFT OUTER JOIN app_Info a ON a.uid = c.uid ORDER BY a.version all the NULL versions will be grouped together

 

Top contributing authors

Name
Posts
sunfire
1
user's latest post:
Query Help
Published (2009-11-13 12:38:00)
Hello, I'm not sure what function I'm looking for but what I'm wanting to do is group all of the a.version by NULL vs Not NULL no matter what the version value is. What do I need to do? select c.name, c.address, a.version From clients c Left Join app_Info a ON c.uid = a.uid
mnirwan
1
user's latest post:
Query Help
Published (2009-11-13 14:22:00)
Code: select c.name, c.address, IF(a.version IS NULL, 'version null', 'version not null') as version From clients c Left Join app_Info a ON c.uid = a.uid GROUP BY 3
r937
1
user's latest post:
Query Help
Published (2009-11-13 20:17:00)
Code: SELECT c.name , c.address , a.version FROM clients c LEFT OUTER JOIN app_Info a ON a.uid = c.uid ORDER BY a.version all the NULL versions will be grouped together
mnirwan mnirwan is offline...
1
user's latest post:
Query Help
Published (2009-11-13 14:22:00)
Code: select c.name, c.address, IF(a.version IS NULL, 'version null', 'version not null') as version From clients c Left Join app_Info a ON c.uid = a.uid GROUP BY 3
r937 r937 is online now SQL...
1
user's latest post:
Query Help
Published (2009-11-13 20:17:00)
Code: SELECT c.name , c.address , a.version FROM clients c LEFT OUTER JOIN app_Info a ON a.uid = c.uid ORDER BY a.version all the NULL versions will be grouped together
sunfire sunfire is offline...
1
user's latest post:
Query Help
Published (2009-11-13 12:38:00)
Hello, I'm not sure what function I'm looking for but what I'm wanting to do is group all of the a.version by NULL vs Not NULL no matter what the version value is. What do I need to do? select c.name, c.address, a.version From clients c Left Join app_Info a ON c.uid = a.uid

Related threads on "dBforums - Database Support Community":

Related threads on other sites:

Thread profile page for "Query Help" on http://www.dbforums.com. This report page is a snippet summary view from a single thread "Query Help", located on the Message Board at http://www.dbforums.com. This thread profile page shows the thread statistics for: Total Authors, Total Thread Posts, and Thread Activity