-
1st March 2010, 10:53 PM
#21
Senior Member
Diamond Hubber
Originally Posted by
app_engine
Danks, This guy is a SQL guru
Om Namaste astu Bhagavan Vishveshvaraya Mahadevaya Triambakaya Tripurantakaya Trikalagni kalaya kalagnirudraya Neelakanthaya Mrutyunjayaya Sarveshvaraya Sadashivaya Shriman Mahadevaya Namah Om Namah Shivaye Om Om Namah Shivaye Om Om Namah Shivaye
-
1st March 2010 10:53 PM
# ADS
Circuit advertisement
-
3rd March 2010, 04:18 PM
#22
Senior Member
Diamond Hubber
Does any one know how to convert 'american date format' to 'british date' format in SQL server , without changing the coalltion??
Om Namaste astu Bhagavan Vishveshvaraya Mahadevaya Triambakaya Tripurantakaya Trikalagni kalaya kalagnirudraya Neelakanthaya Mrutyunjayaya Sarveshvaraya Sadashivaya Shriman Mahadevaya Namah Om Namah Shivaye Om Om Namah Shivaye Om Om Namah Shivaye
-
3rd March 2010, 05:31 PM
#23
Senior Member
Diamond Hubber
ssabbaa I figured it out
here goes
SELECT CONVERT(VARCHAR(8), GETDATE(), 3) AS [DD/MM/YY]
Om Namaste astu Bhagavan Vishveshvaraya Mahadevaya Triambakaya Tripurantakaya Trikalagni kalaya kalagnirudraya Neelakanthaya Mrutyunjayaya Sarveshvaraya Sadashivaya Shriman Mahadevaya Namah Om Namah Shivaye Om Om Namah Shivaye Om Om Namah Shivaye
-
3rd March 2010, 05:46 PM
#24
Senior Member
Diamond Hubber
linux experts, how to share internet btw 2 laptops running ubuntu, thru wifi?
-
3rd March 2010, 09:53 PM
#25
Senior Member
Diamond Hubber
Sorry sakala , I am no linux expert
Om Namaste astu Bhagavan Vishveshvaraya Mahadevaya Triambakaya Tripurantakaya Trikalagni kalaya kalagnirudraya Neelakanthaya Mrutyunjayaya Sarveshvaraya Sadashivaya Shriman Mahadevaya Namah Om Namah Shivaye Om Om Namah Shivaye Om Om Namah Shivaye
-
20th March 2010, 10:21 PM
#26
Moderator
Diamond Hubber
friend of mine - suggested
never envounted patterns like O', which is normally used to concatinate the strings in SQL. fpr normal names '%name%' should work.
Is it working ?
-
22nd March 2010, 03:49 PM
#27
Senior Member
Diamond Hubber
aana
Unga avatar and signature
Om Namaste astu Bhagavan Vishveshvaraya Mahadevaya Triambakaya Tripurantakaya Trikalagni kalaya kalagnirudraya Neelakanthaya Mrutyunjayaya Sarveshvaraya Sadashivaya Shriman Mahadevaya Namah Om Namah Shivaye Om Om Namah Shivaye Om Om Namah Shivaye
-
23rd March 2010, 09:06 PM
#28
Moderator
Diamond Hubber
-
5th May 2010, 09:14 PM
#29
Senior Member
Diamond Hubber
Is any one familiar with the hardest thing in SQL code, known as Cursor?
I will explain what I need to do..
I have table A , and Table B
Table A Table B
--------- ------------
First_name First_name
Last_name Last_name
Address1 Address1
Adreess2 Address2
What I want to do, see if the firstname and last_name in Table B exist in Table A, if so then I want to update Address1 and address2 in table A with a value. This is easy to do for couple of rows.
using
Update Table A
set address1='test',
address2='test2'
where first_name in (select first_name from table B
where first_name like 'Super')
but the problem is in Table B , i have 10,000 first_name with values in the address1.. I need update table A9Address1) with a value based on table B's contact name, hence you end up with 10,,000 different names, with 10,000 different address, if it was just one addreess it would have been very easy, I can use the above script.
any ideas any one ?
Om Namaste astu Bhagavan Vishveshvaraya Mahadevaya Triambakaya Tripurantakaya Trikalagni kalaya kalagnirudraya Neelakanthaya Mrutyunjayaya Sarveshvaraya Sadashivaya Shriman Mahadevaya Namah Om Namah Shivaye Om Om Namah Shivaye Om Om Namah Shivaye
-
5th May 2010, 09:27 PM
#30
Senior Member
Platinum Hubber
Checking whether the first name / last name exists in table B is no big deal (for set processing, use EXISTS clause)
OTOH, if you have 10000 NEW addresses to be updated to table A, you got to STORE those addresses in a table (unless the requirement is to directly update from a flat file, then you need a script). Obviously, this flat file or table with new address should have the name reference as otherwise how you're going to relate?
Bookmarks