473,385 Members | 1,764 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,385 software developers and data experts.

querie assitance

I need some help with a query.

I have two tables in one data base that both have a SSN field. The ssn
field in one table contains slashes and the ssn field in the other does not.

I know how to use CONCAT() and RIGHT(),MID(), and LEFT() on one of the ssn
fields to obtain a result with digits only.

But, I need to obtain a result set that includes a field from each table
matched by ssn with one field from each.

For example, let's say that table 'one' looks like this:
'111/22/3333','John Q Public'

Table 'two' looks like this:
'11122333','somecode'

What I'd like to achieve is a result set of:
'111223333','John Q Public','somecode'

I guess what's throughing me off is using CONCAT() with the other substring
items.

Can this be done with one query?

Mucho appreciation for any advice or assistance.

Thanks!

~Rob

--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe: http://lists.mysql.com/my***********...ie.nctu.edu.tw

Jul 19 '05 #1
0 1001

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Patric | last post by:
Hi I'm having some problem getting the following result. I have 2 tables Drivers -------- DriverID int (PK) DriverName varchar(50)
1
by: shunah | last post by:
hello. In an app I'm building, there are two different kinds of memos, family memos and individual memos. Right now I have a single form that I using in four slightly different ways: 1. add a...
1
by: DS | last post by:
Any reason why a Query would stop working? If I run the Query without the Criteria froma form it works. When I run it from a form with the Criteria it doesn't work. Any know why? Thanks. DS
2
by: Maarten van der Cammen | last post by:
Hi all, I have a seemingly small problem I have a query returning e.g.: Field1 Field2 A 1 A 2 A 3
3
by: avandenbroeck | last post by:
The following code does not select the appropiate fields, it select everything with in a zip code ( as an example)and so on. I have tried to modify but I am a rookie and everything I tried has...
1
by: nagaprasad2006 | last post by:
Hi, Let me know how to convert the concatenated text field into a Memo datatype. Thanks Naga
0
by: Paulo Ferreira | last post by:
Hello, I'm trying to run a "make-table" querie that will create a table on protected database but, every time I try to run the querie, I get a message saying that the password is wrong. The...
1
by: diatel1 | last post by:
I have a database with tables and forms. One of those table is the Inventory table, where I have fields like "product" "stock #" "buy date" "paid date" "paid yes/no", etc. I would like to have a form...
5
by: Albert Wammes | last post by:
Is it possible to create form containing an editable crosstab querie? The only way I can think of is to create a temporary table where the results of the crosstab querie are stored, then presented...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...

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.