Click here to Skip to main content
15,905,875 members
Home / Discussions / Database
   

Database

 
AnswerRe: Install SQL Server on Vista Pin
Colin Angus Mackay11-Jan-09 3:20
Colin Angus Mackay11-Jan-09 3:20 
GeneralRe: Install SQL Server on Vista Pin
George_George12-Jan-09 0:24
George_George12-Jan-09 0:24 
AnswerRe: Install SQL Server on Vista Pin
Hamid_RT15-Jan-09 2:26
Hamid_RT15-Jan-09 2:26 
GeneralRe: Install SQL Server on Vista Pin
George_George15-Jan-09 18:36
George_George15-Jan-09 18:36 
Questionis there the sql syntex Limit in MS SQL? Pin
neodeaths11-Jan-09 0:44
neodeaths11-Jan-09 0:44 
AnswerRe: is there the sql syntex Limit in MS SQL? Pin
Reza Raad11-Jan-09 1:09
Reza Raad11-Jan-09 1:09 
Questionhow do i make a special sql statment filter? Pin
neodeaths10-Jan-09 22:55
neodeaths10-Jan-09 22:55 
AnswerRe: how do i make a special sql statment filter? [modified] Pin
Wendelius10-Jan-09 23:10
mentorWendelius10-Jan-09 23:10 
If the data is in numeric format, first convert it to string like:
CONVERT(varchar(50), YourColumn)

After that you can use SUBSTRING function along with DISTINCT on the string:
SELECT DISTINCT SUBSTRING( CONVERT(varchar(50), YourColumn), 1, 1)
FROM TableName
WHERE CONVERT(varchar(50), YourColumn) LIKE '[78]%'


Edited: Added the WHERE clause if needed. Also note that this could be more efficient with an inline view, depending on the table structures and indices.

The need to optimize rises from a bad design.My articles[^]

modified on Sunday, January 11, 2009 5:29 AM

GeneralRe: how do i make a special sql statment filter? Pin
neodeaths11-Jan-09 0:43
neodeaths11-Jan-09 0:43 
QuestionWTL/ATL Pin
manosza10-Jan-09 21:21
manosza10-Jan-09 21:21 
AnswerRe: WTL/ATL Pin
Wendelius10-Jan-09 21:58
mentorWendelius10-Jan-09 21:58 
QuestionUpdating table based on search critea from two tables. Pin
Sunset Towers10-Jan-09 1:54
Sunset Towers10-Jan-09 1:54 
AnswerRe: Updating table based on search critea from two tables. Pin
Wendelius10-Jan-09 2:18
mentorWendelius10-Jan-09 2:18 
GeneralRe: Updating table based on search critea from two tables. Pin
Sunset Towers10-Jan-09 2:32
Sunset Towers10-Jan-09 2:32 
GeneralRe: Updating table based on search critea from two tables. Pin
Wendelius10-Jan-09 2:44
mentorWendelius10-Jan-09 2:44 
QuestionWindows PowerShell Failed error while installing SQL Server 2008 Express Advanced ! Pin
Mohammad Dayyan10-Jan-09 1:49
Mohammad Dayyan10-Jan-09 1:49 
AnswerRe: Windows PowerShell Failed error while installing SQL Server 2008 Express Advanced ! Pin
Wendelius10-Jan-09 2:12
mentorWendelius10-Jan-09 2:12 
GeneralRe: Windows PowerShell Failed error while installing SQL Server 2008 Express Advanced ! Pin
Mohammad Dayyan10-Jan-09 2:18
Mohammad Dayyan10-Jan-09 2:18 
GeneralRe: Windows PowerShell Failed error while installing SQL Server 2008 Express Advanced ! Pin
Wendelius10-Jan-09 2:20
mentorWendelius10-Jan-09 2:20 
GeneralRe: Windows PowerShell Failed error while installing SQL Server 2008 Express Advanced ! Pin
Mohammad Dayyan10-Jan-09 2:30
Mohammad Dayyan10-Jan-09 2:30 
GeneralRe: Windows PowerShell Failed error while installing SQL Server 2008 Express Advanced ! Pin
Wendelius10-Jan-09 2:47
mentorWendelius10-Jan-09 2:47 
Questiondatabase tutorials Pin
staticv9-Jan-09 21:53
staticv9-Jan-09 21:53 
AnswerRe: database tutorials Pin
Wendelius9-Jan-09 22:04
mentorWendelius9-Jan-09 22:04 
AnswerRe: database tutorials Pin
User 171649210-Jan-09 0:46
professionalUser 171649210-Jan-09 0:46 
GeneralRe: database tutorials Pin
staticv10-Jan-09 2:48
staticv10-Jan-09 2:48 

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.