This one's been bugging me all night.
OK, at present this is what I do.
I have a stored procedure (usp_ReportMaster) which returns the result of a dynamic SQL query like this:
SELECT Improvement.* FROM ..........
I then have many other stored procedures that run the above stored proc first and...
Scaled down table structure:
TblCustomer:
CustomerID
FirstName
Surname
etc
TblEnquiry:
EnquiryID
CustomerID
Source
etc
I am trying (as part of a larger query) to get a list of the EnquiryIDs for a customer's most recent enquiry (therefore the list will only have 1 entry for each customer...
Dear people,
I am tearing my hair out trying to write an SQL statement to do the following:
In Table "Team" amongst other things I have a "TeamID" and a "TeamName". In Table "Match" amongst other things I have a "HomeTeamID" and an...
Dear people,
I am tearing my hair out trying to write an SQL statement to do the following:
In Table "Team" amongst other things I have a "TeamID" and a "TeamName". In Table "Match" amongst other things I have a "HomeTeamID" and an...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.