however, this should do what you ask
Code:
Select Max(TimeLogoff) From shift_Login
Select Max(TimeLogoff) From shift_Login
SELECT tblPhone.custID, NotMobile.CustMoreThanMob FROM tblPhone left outer
SELECT id, first_name, (SELECT user_name FROM table2 WHERE table2.user_id = users.id) as new_user_name FROM users WHERE (SELECT user_name FROM table2 WHERE table2.user_id = users.id) = 'a'
Select ID, ACTIVITY, INITIAL_DATE, NULLIF(End_Date, Initial_Date) As END_DATE From ( Select ID, ACTIVITY, MIN(Date) as INITIAL_DATE From A_TABLE Group By ID, ACTIVITY ) MinTab Inner Join
SELECT FruitID, CustomerName, SUM(QuantityBought), MONTH(DateBought), YEAR(DateBought) From CustomerOrders inner join Customers on Customers.CustomerID = CustomerOrders.CustomerID WHERE YEAR(DateBought) >= 2010 GROUP BY FruitID, CustomerName,
Leave a comment: