Click here to Skip to main content
15,897,273 members
Home / Discussions / Database
   

Database

 
GeneralRe: SQL code and datagrid Pin
Mike Dimmick11-Mar-04 2:56
Mike Dimmick11-Mar-04 2:56 
GeneralRe: SQL code and datagrid Pin
ASGill11-Mar-04 15:39
ASGill11-Mar-04 15:39 
GeneralDataView from DataTable Pin
Le centriste10-Mar-04 10:33
Le centriste10-Mar-04 10:33 
GeneralADO Disconnected Recordset Pin
cmacgowan10-Mar-04 6:41
cmacgowan10-Mar-04 6:41 
GeneralAbout CrystalReports ... Pin
DustInTheWind9-Mar-04 10:18
DustInTheWind9-Mar-04 10:18 
GeneralRe: About CrystalReports ... Pin
jscorales11-Mar-04 22:52
jscorales11-Mar-04 22:52 
GeneralI need suggestions - datatabase structure Pin
zzaa9-Mar-04 4:26
zzaa9-Mar-04 4:26 
GeneralRe: I need suggestions - datatabase structure Pin
Andy Harman9-Mar-04 10:17
Andy Harman9-Mar-04 10:17 
If you normalise as you suggested then the following SQL-Select statement will find all of the providers who can speak English and French:
select P.ProviderId, P.ProviderName<br />
from Provider P<br />
where P.ProviderId in (select ProviderId from ProviderLangauge where LanguageCode = 'UK')<br />
and P.ProviderId in (select ProviderId from ProviderLanguage where LangauageCode = 'FR')


The performance would depend upon the database that you are using and how many records are in each table (make sure that your development database contains a similar number of records to what you would expect in your live database).

A composite unique index on "ProviderLanguage(LanguageCode, ProviderId)" would be useful for resolving the above query. I would expect a (possibly clustered) primary key on "ProviderLanguage(ProviderId, LanguageCode)" to help your provider-maintenance web page.

I would also strongly recommend that you get yourself a good book on SQL and database design (if you don't already have one). Good knowledge of these two areas tend to lead to much simpler ASP code and much faster performance.

Hope this helps.
Andy
QuestionHow to create an NTEXT from string data? Pin
kumaichi9-Mar-04 3:22
kumaichi9-Mar-04 3:22 
GeneralRunning SQL script in .NET GUI Pin
xsigroup9-Mar-04 3:21
xsigroup9-Mar-04 3:21 
GeneralProblems with CREATE DATABASE Pin
Frederick S Jones9-Mar-04 3:12
Frederick S Jones9-Mar-04 3:12 
GeneralRe: Problems with CREATE DATABASE Pin
Colin Angus Mackay9-Mar-04 5:39
Colin Angus Mackay9-Mar-04 5:39 
GeneralRe: Problems with CREATE DATABASE Pin
Frederick S Jones11-Mar-04 2:08
Frederick S Jones11-Mar-04 2:08 
GeneralGenerating SQL script Pin
Asad Hussain9-Mar-04 2:51
Asad Hussain9-Mar-04 2:51 
GeneralRe: Generating SQL script Pin
Colin Angus Mackay9-Mar-04 5:34
Colin Angus Mackay9-Mar-04 5:34 
QuestionOracle Notification Services?? Pin
Chen Venkataraman8-Mar-04 9:43
Chen Venkataraman8-Mar-04 9:43 
GeneralFind right Sql Collation Problem !! Pin
MasudM8-Mar-04 5:49
MasudM8-Mar-04 5:49 
GeneralHi, everyone. I need help about SQL 2000 server. Pin
jlizardo8-Mar-04 4:01
jlizardo8-Mar-04 4:01 
GeneralRe: Hi, everyone. I need help about SQL 2000 server. Pin
Rob Graham8-Mar-04 8:56
Rob Graham8-Mar-04 8:56 
GeneralConnection Pooling Pin
Mazdak7-Mar-04 21:03
Mazdak7-Mar-04 21:03 
GeneralRe: Connection Pooling Pin
Rob Graham8-Mar-04 3:00
Rob Graham8-Mar-04 3:00 
GeneralRe: Connection Pooling Pin
Mazdak8-Mar-04 3:32
Mazdak8-Mar-04 3:32 
GeneralRe: Connection Pooling Pin
Rob Graham8-Mar-04 6:23
Rob Graham8-Mar-04 6:23 
GeneralRe: Connection Pooling Pin
Mazdak8-Mar-04 7:59
Mazdak8-Mar-04 7:59 
Generalunknown extension file Pin
aguest6-Mar-04 10:59
aguest6-Mar-04 10:59 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.