Gurjeet Singh

Gurjeet Singh

  • NA
  • 90
  • 94.7k

Combine select statements

Feb 16 2013 2:30 AM
How can comibne below all select statement into one select statement.
Actaully i want max(id ) of each item into one select statement

Select  item,balance from ACTesting  where id =(select max(id) from ACTesting where item='1/2')
Select  item,balance from ACTesting  where id =(select max(id) from ACTesting where item='2/2')
Select  item,balance from ACTesting  where id =(select max(id) from ACTesting where item='2/3')

Answers (3)