473,396 Members | 2,099 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Like Concat

Dear All,

I have stored Product Name's in the Table "Product Master". The Product names are like ' CS-142',' CS-143',' CS145' etc. If i search the 'CS142' , the record CS-142 should be fetched from the Product_Master table. I need query to get these information.

Thanks in advance.

Regards,
Madhumadhi.S
Jun 12 '07 #1
3 2589
nomad
664 Expert 512MB
Dear All,

I have stored Product Name's in the Table "Product Master". The Product names are like ' CS-142',' CS-143',' CS145' etc. If i search the 'CS142' , the record CS-142 should be fetched from the Product_Master table. I need query to get these information.

Thanks in advance.

Regards,
Madhumadhi.S
Sorry we can not do your homework for you. This is a help area.
Think about what you need to do.
1. get the fields you want.
2. what table do you want Product Master
3. the where what do you want to be found.

nomad
Jun 12 '07 #2
Dear All,

I have stored Product Names in the Table "Product Master". The Product names are like ' CS-142',' CS-143',' CS145' etc. If i search the 'CS142' , the record CS-142 should be fetched from the Product_Master table.

The query

"SELECT * FROM Product_Master WHERE Product_Name LIKE 'CS142%' ";

The above query is not fetching the records with the Poduct _Name CS-142. if i search with CS142, then i need the record CS-142 to be returned.

How to modify the above query to carry out this task.

Thanks in Advance

Regards,
Madhumadhi.S
Jun 13 '07 #3
pradeep kaltari
102 Expert 100+
Dear All,

I have stored Product Names in the Table "Product Master". The Product names are like ' CS-142',' CS-143',' CS145' etc. If i search the 'CS142' , the record CS-142 should be fetched from the Product_Master table.

The query

"SELECT * FROM Product_Master WHERE Product_Name LIKE 'CS142%' ";

The above query is not fetching the records with the Poduct _Name CS-142. if i search with CS142, then i need the record CS-142 to be returned.

How to modify the above query to carry out this task.

Thanks in Advance

Regards,
Madhumadhi.S
Hi Madhumadhi,
Try the following:
Expand|Select|Wrap|Line Numbers
  1.  
  2. WHERE product_name = 'CS%142'
  3.  
'%' will match 0 or more characters that can appear between CS and 142. I hope this helps you.

Regards,
Pradeep
Jun 13 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

15
by: Dave Benjamin | last post by:
David Mertz Functional Programming in Python Using the Xoltar Toolkit Steve Holden Python Web Services Alex Martelli Metaprogramming in Python
4
by: Gerald Aichholzer | last post by:
Hello, I need to specify the following attribute in an xhtml-file containing TAL templates: <div tal:attributes="onMouseOver concat('func(',xyz,')')"> which results in <div...
5
by: F. Da Costa | last post by:
Hi, Could it be correct that the following code does *not* work because i'm not using the var arr = new Array("a","b","c"); methodology?? Read through...
12
by: Marek Lewczuk | last post by:
Hello, As I'm in the middle of the migration process form mysql to pg I found that there is no CONCAT function which is available in mysql. Can anybody tell me how to implement this function using...
3
by: Bryan Valencia | last post by:
Ok, I tried to use the concat function. It's in the Help, but it claims it can't find the namespace that contains 'concat'. You'd think there'd be a note in the help system if I have to use some...
16
by: Jacky | last post by:
Hi, Concat wors as tmpStr = tmpStr.Concat(tmpStr, tmpStr2) Why it do not refer to owner object so tmpStr.Concat(tmpStr, tmpStr2) and now tmpStr has same value as upper?
8
by: Doug Stiers | last post by:
Is there a downside to using string.concat? Other than a little overhead? str1 = string.concat(str1,str2) vs. str1 &= str2 It seems to me like the string class should be optimized to do this...
4
by: Martin Fletcher | last post by:
I cant get the Concat function to work, please help. Here's some of my code. Module modTCP Public TCP_RECEIVED_DATA As String Private WithEvents TCP_SERVER As New WinSockSVR Private Sub...
1
by: Trint Smith | last post by:
Ok, I have a webform that has these checkboxes: 1. something 2. something else 3. and something else When the user clicks on the checkbox, I want all of the selections to go into a textbox...
8
by: Peter Larsen [CPH] | last post by:
Hi, How do i concat two dictionaries aka the following sample: Dictionary<int, stringa; Dictionary<int, stringb; b.Add(a); What is the easiest way to concat two dictionaries ??
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.