ECN Electrical Forum - Discussion Forums for Electricians, Inspectors and Related Professionals
ECN Shout Chat
Shout Box
Recent Posts
AreMetal Ladders Ever OK For Electrical Work?
by HotLine1. 01/22/18 07:31 PM
Photocell
by twh. 01/22/18 05:06 PM
VDE 0100 to introduce AFCIs
by sparky. 01/20/18 05:09 PM
MRI LED lights dimmer control replacement - wow!
by Potseal. 01/19/18 08:52 PM
New in the Gallery:
Housebilding DIY wiring
SE cable question
Who's Online Now
0 registered members (), 9 guests, and 10 spiders.
Key: Admin, Global Mod, Mod
Previous Thread
Next Thread
Print Thread
Rate Thread
SQL and Database help #132072
02/20/05 03:25 AM
02/20/05 03:25 AM
G
Gloria  Offline OP
Member
Joined: May 2004
Posts: 364
Budapest, Hungary
Hello!

I'm having problems with using access or sql. Can anyone help me?

1., I want to put together two coloumns. In excel I'd do it with concatenate. In access? There are some built-in functions, but I dunno which one to use. (It is not a solution to do it in excel, while the base datas can change and I have to run this update query some times.

2., How to choose a row of numbers from a database if I don't know, how long the number is?
This case it is telephone numbers, which cal be 1 - 7-8 long. How to look it up?

Thank you in advance,

Gloria


The world is full of beauty if the heart is full of love
Tools for Electricians:
Re: SQL and Database help #132073
02/20/05 11:51 AM
02/20/05 11:51 AM
J
JCooper  Offline
Member
Joined: Dec 2002
Posts: 228
Kendall Park, NJ USA
Gloria, you can concatenate in SQL with the 'concat' command

eg 'Insert into table1.field3 concat(table1.field1+table1.field2)'

I think that would work for you, but the concat is the concatenate command for SQL.

As far as the query for the phone number how is it structured? Is each number in its own column and you need to select non-null values?

'select * from table1 where column<>'0''

Re: SQL and Database help #132074
02/21/05 01:34 AM
02/21/05 01:34 AM
G
Gloria  Offline OP
Member
Joined: May 2004
Posts: 364
Budapest, Hungary
Hello!

Thank you, I'll try.
The problem with the phone numbers is that I don't know, how long it is.
The best would be if I could enter 2-3-4-5, any numbers and it would recognize the location, I mean in the databases there are country and local numbers. For ex. 18007654321 and if I type 18007 it would recognize the 1800 which is in the list.


The world is full of beauty if the heart is full of love
Re: SQL and Database help #132075
02/21/05 01:40 AM
02/21/05 01:40 AM
G
Gloria  Offline OP
Member
Joined: May 2004
Posts: 364
Budapest, Hungary
Dear JCooper!

Sorry, It was not working in access. [Linked Image]
I thought I had to make an update query, cause the base data table can change.

Any advise?


The world is full of beauty if the heart is full of love
Re: SQL and Database help #132076
02/23/05 10:44 AM
02/23/05 10:44 AM
G
Gloria  Offline OP
Member
Joined: May 2004
Posts: 364
Budapest, Hungary
I visited the ms online forum for help and that is -I must say - a very good site. there are very skilled people helping.

I can suggest to use it.


The world is full of beauty if the heart is full of love

Featured:

2017 Master Electrician Exam Preparation Combos
2017 NEC Electrician
Exam Prep Combos:
Master / Journeyman

 

Member Spotlight
BEAMEUP
BEAMEUP
WA
Posts: 27
Joined: December 2004
Show All Member Profiles 
Top Posters(30 Days)
Admin 20
sparky 15
Popular Topics(Views)
243,607 Are you busy
180,425 Re: Forum
170,875 Need opinion
Powered by UBB.threads™ PHP Forum Software 7.6.1
(Release build 20180101)
Page Time: 0.017s Queries: 14 (0.004s) Memory: 0.9664 MB (Peak: 1.1039 MB) Zlib enabled. Server Time: 2018-01-24 11:38:27 UTC