Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. mnk82o

    No idea how to approach query

    If you want to avoid creation of view and running yearly totals for each Paid_to, as specified in your original problem, then use this: SELECT 'Capital ' TblId, Paid_to, sYear, sJanuary, sFebruary.... INTO #Temp FROM Capital UNION ALL SELECT 'Advisors ' TblId, Paid_to, sYear, sJanuary...
  2. mnk82o

    Current user query

    This should work Select ltrim(right((' '+ltrim(rtrim(isnull(fieldname,' ')))),7)) user from table1 Note: donot forget to give seven spaces between two quotes MNK

Part and Inventory Search

Back
Top