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
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
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
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
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
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
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
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
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":
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