Microsoft SQL Server
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsDatabasesMicrosoft SQL Server

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old January 3rd, 2006, 01:57 PM
spazmanian spazmanian is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2006
Posts: 1 spazmanian User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 m 39 sec
Reputation Power: 0
SQL Reporting Services and multiple field (not database) search

I have the sql query below and would like to know how to get it to just ask for the parameter @part but also do a or search on the description field. The way it is now it asks or both.

thanks,
newbie
SELECT PART.ID, PART.DESCRIPTION, PART.ABC_CODE, PART.UNIT_MATERIAL_COST, PART.QTY_ON_HAND, VENDOR_QUOTE.MFG_NAME,
VENDOR_QUOTE.MFG_PART_ID, PART.USER_3, PART.USER_4, PART.USER_5, PART.USER_6, PART.USER_7, PART.USER_8,
VENDOR_PART.VENDOR_PART_ID, VENDOR.NAME AS Vendor_Name, PART.PREF_VENDOR_ID
FROM VENDOR_QUOTE INNER JOIN
VENDOR ON VENDOR_QUOTE.VENDOR_ID = VENDOR.ID RIGHT OUTER JOIN
PART LEFT OUTER JOIN
VENDOR_PART ON PART.ID = VENDOR_PART.PART_ID ON VENDOR.ID = VENDOR_PART.VENDOR_ID
WHERE (PART.ID = @Part) OR
(PART.DESCRIPTION = @DESC)

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesMicrosoft SQL Server > SQL Reporting Services and multiple field (not database) search


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
Stay green...Green IT