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 3 2589 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
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 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: -
-
WHERE product_name = 'CS%142'
-
'%' will match 0 or more characters that can appear between CS and 142. I hope this helps you.
Regards,
Pradeep
Sign in to post your reply or Sign up for a free account.
Similar topics
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
|
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...
|
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...
|
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...
|
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...
|
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?
|
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...
|
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...
|
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...
|
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 ??
|
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...
|
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
|
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...
|
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,...
|
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...
|
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...
|
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...
|
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...
|
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,...
| |