Lazy167
55 pts. | May 26 2009 2:49PM GMT
thx works great
on another note, is there a way to split the column into 2 so that 1 column shows whether that number has a * prefix or not.
eg
* |99
* |12
null |23
* | 68
* | 48
null | 89
null | 13
Carlosdl
29340 pts. | May 26 2009 6:42PM GMT
Assuming that you are using SQL Server, you could use the SUBSTRING and CHARINDEX functions.
Something like this:
SELECT SUBSTRING(your_column,CHARINDEX(’*',your_column),1) has_asterisk,
SUBSTRING(your_column,CHARINDEX(’*',your_column)+1,LEN(your_column)) number FROM book;
If you are using Oracle, you should use SUBSTR and INSTR instead.
JackX
10 pts. | May 27 2009 6:14AM GMT
That is so interesting..Well aside from that trivia, did you know that The Credit Card Bill has been both lauded and lamented, and it’s stirring up some controversy. Critics of the Senate credit card bill, AKA the Credit Card Bill of Rights, claim it is a move towards socialist tendencies, but more disturbing even that that is that the people who use credit cards responsibly, the ones that timely pay their bills, are the ones that will have higher fees and interest rates. The thought of responsible users of credit thinking about fast loans to pay off credit card interest rather than the less responsible is certainly not something anyone would relish. President Obama has endorsed the bill, but some people would give short term loans to get rid of the <a rev="vote for” title="Pay Your Credit Cards On Time? You Will Be Penalized!” href="http://personalmoneystore.com/moneyblog/2009/05/19/senate-credit-card-bill/”> Credit Card Bill</a>.






