Click here to Skip to main content
15,892,298 members
Home / Discussions / Database
   

Database

 
QuestionDoes updating view updates the table? Pin
NetBot14-Dec-07 19:00
NetBot14-Dec-07 19:00 
AnswerRe: Does updating view updates the table? Pin
pmarfleet14-Dec-07 21:59
pmarfleet14-Dec-07 21:59 
GeneralRe: Does updating view updates the table? Pin
NetBot14-Dec-07 22:54
NetBot14-Dec-07 22:54 
GeneralRe: Does updating view updates the table? Pin
pmarfleet15-Dec-07 6:43
pmarfleet15-Dec-07 6:43 
AnswerRe: Does updating view updates the table? Pin
Mike Dimmick15-Dec-07 6:31
Mike Dimmick15-Dec-07 6:31 
GeneralRe: Does updating view updates the table? Pin
pmarfleet15-Dec-07 9:46
pmarfleet15-Dec-07 9:46 
GeneralTrim Function Pin
mehrdadc4814-Dec-07 7:56
mehrdadc4814-Dec-07 7:56 
GeneralRe: Trim Function Pin
pmarfleet14-Dec-07 9:22
pmarfleet14-Dec-07 9:22 
mehrdadc48 wrote:
In SQL How can I trim characters from result of select. (for example 0002120 in DB returns as 2120)


What do you mean by 'trim'? In programming terms, this usually refers to removing leading or trailing white space in a sequence of characters. In your example, you appear to be referring to the removal of insignificant digits from the string representation of a number. You also haven't stated which database system you are using. Is it SQL Server, Access, Oracle or something else? If you are trying to remove insignificant digits and are using SQL Server, you could write a function which uses the PATINDEX function to find the position of the first non-zero digit in the string and then uses the SUBSTRING function to return all digits at and after this position.
Paul Marfleet

"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush


GeneralRe: Trim Function Pin
GuyThiebaut15-Dec-07 11:24
professionalGuyThiebaut15-Dec-07 11:24 
GeneralTransferText and FileStream Incompatibility... [modified] Pin
new_phoenix14-Dec-07 6:28
new_phoenix14-Dec-07 6:28 
GeneralGetting RANDOM records from MS Access Pin
Nadia Monalisa14-Dec-07 6:15
Nadia Monalisa14-Dec-07 6:15 
GeneralRe: Getting RANDOM records from MS Access Pin
pmarfleet14-Dec-07 9:26
pmarfleet14-Dec-07 9:26 
GeneralMysql dateadd query problem Pin
archangel71714-Dec-07 5:11
archangel71714-Dec-07 5:11 
GeneralRe: Mysql dateadd query problem Pin
Mike Dimmick14-Dec-07 13:09
Mike Dimmick14-Dec-07 13:09 
GeneralRe: Mysql dateadd query problem Pin
archangel71715-Dec-07 12:28
archangel71715-Dec-07 12:28 
GeneralSELECT works fine when I execute directly but fails in stored proc Pin
Mel Padden14-Dec-07 0:43
Mel Padden14-Dec-07 0:43 
GeneralRe: SELECT works fine when I execute directly but fails in stored proc Pin
Paddy Boyd14-Dec-07 3:38
Paddy Boyd14-Dec-07 3:38 
GeneralRe: SELECT works fine when I execute directly but fails in stored proc Pin
Mel Padden14-Dec-07 3:51
Mel Padden14-Dec-07 3:51 
GeneralRe: SELECT works fine when I execute directly but fails in stored proc Pin
Mel Padden14-Dec-07 4:10
Mel Padden14-Dec-07 4:10 
GeneralRe: SELECT works fine when I execute directly but fails in stored proc Pin
Paddy Boyd14-Dec-07 4:12
Paddy Boyd14-Dec-07 4:12 
QuestionQuery Issue Pin
rockz...13-Dec-07 23:03
rockz...13-Dec-07 23:03 
GeneralRe: Query Issue Pin
Colin Angus Mackay13-Dec-07 23:14
Colin Angus Mackay13-Dec-07 23:14 
Generalimport xls to sqlserver table Pin
sivaram praveen13-Dec-07 19:49
sivaram praveen13-Dec-07 19:49 
GeneralRe: import xls to sqlserver table Pin
pmarfleet13-Dec-07 21:42
pmarfleet13-Dec-07 21:42 
GeneralImporting NULLs Instead of Actual Values Pin
Bryan Bradford13-Dec-07 9:58
Bryan Bradford13-Dec-07 9:58 

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.