Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
pdx_2188
Starting Member
12 Posts |
Posted - 2011-04-01 : 17:10:32
|
| Good Afternoon,I'm trying to create a query that will not only take out the Processor [AMD] but will also take out pieces of a description I do not want. Here is the query I'm using. I do not want AMD processors, but also do not want the 0D1 parts of a description. I feel like this should be an easy fix?[Code]select MFPN, [processor / manufacturer]from vreport_data Where[processor / manufacturer] != 'AMD' and Description not like '%OD1%' or Description not like '%0D1%'Order by [processor / manufacturer] ASC [/Code]Thanks, |
|
|
tkizer
Almighty SQL Goddess
38200 Posts |
|
|
pdx_2188
Starting Member
12 Posts |
Posted - 2011-04-01 : 17:15:22
|
| Hi Tara,this is a small output since the actual output it about 280K rows of mostly Other processors.Part Number ProcessorPS218E-E8180-02 AMDPS218E-E8180-FR AMDPS218U-E81J08 AMDPS494AA#ABA AMDPSAEGE-00H014BT AMDPSAEGU-00V00U AMDPSAEGU-00W00U AMDPSAEGU-00W00X AMDPSAEGU-00Y00V AMDPSAEGU-01100U AMDPSAEGU-01800U AMDPSAEGU-03801J AMDPSAEGU-03C01K AMDPSAEGU-03D01L AMDPSAEGU-03D01L-OB AMDPSAEGU-03L01M AMDPSAEGU-03P01M AMDPSAELE-01600KGR AMDPSAELU-01H010 AMDPSAELU-038010 AMDPSAELU-03C01J AMDPSAFGU-00H002 AMDPSAFGU-00L002 AMDPSAFGU-01V002 AMDPSAFGU-01V007 AMDPSAFGU-01V015 AMDPSAFGU-01W002 AMDPSAFGU-01X002 AMDPSAFGU-020002 AMDPSAFGU-020002B AMDPSAFGU-02E002 AMDPSAFGU-02E002B AMD |
 |
|
|
tkizer
Almighty SQL Goddess
38200 Posts |
|
|
pdx_2188
Starting Member
12 Posts |
Posted - 2011-04-01 : 17:41:17
|
| Well I would like AMD to no longer be part of the processor list, but also be able to trim the 0D1 out of the description field. usually the 0D1 part number would look like : 123456-001 0D1 or 123456-001#0D1 I would like it to just display descriptions that display: 123456-001. I hope this is a little clearer? |
 |
|
|
tkizer
Almighty SQL Goddess
38200 Posts |
|
|
pdx_2188
Starting Member
12 Posts |
Posted - 2011-04-01 : 17:47:12
|
| Thank you so much! I have never used the replace function before, but I have a feeling it will come in very handy in the future! |
 |
|
|
tkizer
Almighty SQL Goddess
38200 Posts |
|
|
|
|
|
|
|