I looked through the questions and noticed this:
SELECT prodid, issue FROM Sales WHERE custid = @custid AND datesold = SELECT MAX(datesold) FROM Sales s WHERE s.prodid = Sales.prodid AND s.issue = Sales.issue AND s.custid = @custid
I was wondering what the "@" does before custID? Is this just a way of referencing custID from a selected table?
sql
Levi Dec 12 '08 at 3:02 2008-12-12 03:02
source share