The PokéCommunity Forums - View Profile: Drakow
The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Members List
Register New Account FAQ/Rules Chat Blogs Mark Forums Read

Notices



Drakow's Profile Picture

Drakow Drakow is offline

-OVERLORD

Visitor Messages

Showing Visitor Messages 41 to 50 of 2800
  1. Drakow
    April 4th, 2013 12:21 PM
    Drakow
    DECLARE @Customer varchar(160)
    DECLARE @Postcode varchar(20)
    DECLARE @Module varchar(200)
    DECLARE @Price int

    DECLARE compare CURSOR
    FOR
    Select distinct Customer, Postcode, Module, Price from dbo.SSTable
    Open compare

    Fetch next from compare into @Customer, @Postcode, @Module, @Price

    while @@FETCH_STATUS = 0
    Begin

    insert into dbo.CursorResults (Customer, Postcode, Module, Price)
    Select Customer, Postcode, @Module, @Price from dbo.CRMTable
    where (Customer = @Customer OR Customer IS NULL)
    AND (Postcode = @Postcode OR Postcode IS NULL)

    Fetch next from compare into @Customer, @Postcode, @Module, @Price
    END

    CLOSE compare
    DEallocate compare

  2. Drakow
    April 4th, 2013 10:49 AM
    Drakow
    DECLARE @Customer varchar(160)
    DECLARE @Postcode varchar(20)

    DECLARE compare CURSOR
    FOR
    Select distinct top 300 Customer, Postcode from dbo.SSTable
    Open compare

    Fetch next from compare into @Customer, @Postcode

    while @@FETCH_STATUS = 0
    Begin

    insert into dbo.CursorResults (Customer, Postcode, Module, Price)
    Select Customer, Postcode, Module, Price from dbo.CRMTable
    where (Customer = @Customer OR Customer IS NULL)
    AND (Postcode = @Postcode OR Postcode IS NULL)

    Fetch next from compare into @Customer
    END

    CLOSE compare
    DEallocate compare

  3. Lightning
    April 4th, 2013 05:19 AM
    Lightning
    Wow, on his first playthrough??

  4. Scarf
    April 3rd, 2013 08:01 PM
    Scarf
    But it's the things you're special for that make you unique... and special. I'm so eloquent today.

  5. House
    April 3rd, 2013 06:20 PM
    House
    Hi, sir Overlord!

    I guess you could say, I am yes! But I'm definitely not a professional, since I believe I lack the skills and I'm still far away from college. Yeah, I've seen you posted some bits of code on your profile. Do you get to tell people "Did you try turning it off and on again?" IT Crowd style?
    Piano, cool! I studied piano/keyboard for 4 years and guitar for 2, but now I just played a bit of keyboard now and then... Which bands or songs are you into?

    I haven't been doing a lot lately, really. Just studying a lot and learning Polish. It's a fun but relatively difficult language. The words change depending on the grammatical case, so that's kind of confusing.

  6. Drakow
    April 3rd, 2013 12:47 PM
    Drakow
    DECLARE @Customer varchar(100)

    DECLARE compare CURSOR
    FOR
    Select top 100 LEFT(Customer, 10) from dbo.SSTable
    Open compare

    Fetch next from compare into @Customer

    while @@FETCH_STATUS = 0
    Begin

    insert into dbo.CursorResults (Customer)
    Select LEFT(Customer, 10) from dbo.CRMTable
    where (LEFT(Customer, 10) = @Customer OR LEFT(Customer, 10) IS NULL)

    Fetch next from compare into @Customer
    END

    CLOSE compare
    DEallocate compare

  7. Drakow
    April 3rd, 2013 10:55 AM
    Drakow
    DECLARE @Customer varchar(100)

    DECLARE compare CURSOR
    FOR
    Select LEFT(Customer, 10) from dbo.SSTable
    Open compare

    Fetch next from compare into @Customer

    while @@FETCH_STATUS = 0
    Begin

    insert into dbo.CursorResults (Customer)
    Select Customer from dbo.CRMTable
    where (Customer = @Customer OR LEFT(Customer, 10) IS NULL)

    Fetch next from compare into @Customer
    END

    CLOSE compare
    DEallocate compare

  8. Drakow
    April 3rd, 2013 10:34 AM
    Drakow
    DECLARE @Customer varchar(100)

    DECLARE compare CURSOR
    FOR
    Select top 30 Customer from dbo.SSTable
    Open compare

    Fetch next from compare into @Customer

    while @@FETCH_STATUS = 0
    Begin

    insert into dbo.CursorResults
    (Select Customer, PostCode from dbo.CRMTable
    where (Customer = @Customer OR LEFT(Customer, 10) IS NULL))

    Fetch next from compare into @Customer
    END

    CLOSE compare
    DEallocate compare
    otherwise you'll have to declare local variables to hold the PostCode (varchar x)
    and then the select is something like:
    select @Customer=Customer, @Postcode=Postcode FROM dbo.CRMTable WHERE ...
    then your insert is INSERT INTO dbo.CursorResults (Customer, Postcode) VALUES (@Customer, @Postcode)
    if it works then the INSERT INTO (SELECT ...) will do it all in one go for you (no need for row count then)

  9. Drakow
    April 3rd, 2013 10:25 AM
    Drakow
    DECLARE @Customer varchar(100)



    DECLARE compare CURSOR
    FOR
    Select top 30 Customer from dbo.SSTable
    Open compare
    Fetch next from compare into @Customer
    while @@FETCH_STATUS = 0
    Begin
    Select Customer from dbo.CRMTable
    where (Customer = @Customer OR LEFT(Customer, 10) IS NULL)
    IF @@ROWCOUNT > 0
    Begin
    insert into dbo.CursorResults Customer
    VALUES @Customer
    END
    Fetch next from compare into @Customer
    END
    CLOSE compare
    DEallocate compare

  10. House
    April 3rd, 2013 01:14 AM
    House
    That's quite nice. I haven't seen a lot of people here who like Math, kinda sad...
    So hi! I'm Gabriel and my friends don't know calculus yet. Silly friends. How are you?

About Me

  • About Drakow
    Biography
    Allow me to introduce myself. I am known as the Overlord.

    I am a Mathematician who works as an Information Technology consultant. If you ever need any help with mathematics or anything to do with logic or reasoning, feel free to drop me a line and I will see what I can do.

    I am a black belt in Shotokan Karate and have been training for around fifteen years now. I often assist my Sensei with training the younger students too. I am also capable at fighting with a katana.

    As far as gaming goes, I play the Pokemon Trading Card Game. I have only been playing it competitively for about a year now, so I do not have many achievements, though I can say that I won a Spring Battle Road tournament. I also play Pokemon for the Nintendo hand held systems though that is currently on standby until I get my hands on Black and White two. I am generally into fighting, racing, adventure and RPG games for the Playstation 3. Tekken, Soul Calibur, Final Fantasy and Kingdom Hearts are some of my favourites which spring to mind.

    I am generally into the ‘heavy metal’ genre for music, though I can be fairly open minded and willing to listen to other types of music. Some bands I like include Dragon Force, Disturbed, Machine Head, Metallica, Behemoth, Hatebreed, Evile, Slayer, Killswitch Engage and probably a few others.

    I have recently started learning how to play the piano again. I am not very accomplished, it is simply something I wish to develop in my own time and at my own pace.

    Ideally, this has given you an insight into some of the main aspects of my life.
    Interests
    Universal domination
    Karate
    Pokemon TCG
    Pokemon DS battling
    Anime
    Video games (PS3, PSP, DS)
    Piano
    Location
    Hell
    Gender
    Male ♂
    Occupation
    Supreme Overlord.
    Nature
    Serious
    Also Known As
    The Overlord
    Favorite Pokémon
    Hydreigon
    Haxorus
    Scrafty
    Garchomp
    Tyranitar
    Magnezone

    Dark and Dragon types in general.
    Club Memberships
    The Mathematics Club.
    Twitter
    Overlord_Drakow
  • Pokémon Friend Codes
    These fields are for sharing your FCs.
    Friend Codes
    Pokemon Black: 0261-1064-6222
  • Signature

    "A wildfire destroys everything in its path. It will be the same with your powers unless you control them."

Statistics

Total Posts
Visitor Messages
General Information
  • Join Date: October 4th, 2007
  • Referrals: 1

Friends

Showing Friends 1 to 20 of 20

Emblems

Emblem Showcase - 29 Total
  Emblem
E3-11
You nerded out to the 2011 E3 Expo!
Awarded: June 7th, 2011 10:03 PM
Community supporter
These helpful members donate their money to help make PC a better place.
Awarded: June 18th, 2011 05:16 PM
PC Veteran
These old folks have been around for far too long but we love them anyway.
Awarded: June 23rd, 2011 02:39 PM
Crazy, crazy member
There's nothing more to say.
Awarded: June 26th, 2011 05:07 PM
Your Love is My Drug
Tonight we're going hard and if I were you, I'd take this as a VIP invitation.
Awarded: July 4th, 2011 03:33 AM
Limited Edition Get-Together 8 Mint
This member joined us for a healthy discussion in the Get-Together 8's IRC Chatterbox!
Awarded: July 21st, 2011 02:38 PM
Seasonal Photography Participant
No awesome descriptions or anything, but you participated in the Get-Together 8 event and hopefully next time you'll be a winner.
Awarded: August 19th, 2011 02:04 AM
Profile Maker's Prattle Participant
Though your profile didn't quite make it to the top, we hope you had fun and thanks for participating! (PC's Get-Together 8)
Awarded: August 19th, 2011 06:22 AM
Getting Better!
You have won the second place in the PokéCommunity Get-Together 8 Pokédex 3DSnap Category A! Looks like you're showing a bit of your teeth now, eh? Did you enjoy the time in the event?
Awarded: August 19th, 2011 07:57 AM
The Perfect Image Enhancer!
Oh my goodness, you actually did it and became the winner in the PokéCommunity Get-Together 8 Pokédex 3DSnap Category C! All your skills combined have made it possible for the greatest honour! Feel free to spend your time staring at this shiny new emblem!
Awarded: August 19th, 2011 07:59 AM
2D in my 3D world?
Somehow, your result looked like a cardboard cutout in a 3D world... and it sure looks funny! Might as well as enjoy this acquisition for the PokéCommunity Get-Together 8 Pokédex 3DSnap, eh?
Awarded: August 19th, 2011 07:59 AM
The Broken Pencil
You didn’t win, but now you have something else to rant about! [Get-Together 8 Blog Competition Participant]
Awarded: August 19th, 2011 08:06 AM
The Master of Disguise
We really thought you were that Pokemon! [Get-Together 8 Pokemon Cosplay Contest Winner]
Awarded: August 19th, 2011 08:12 AM
Pyramid Head's Approval
Pyramid Head doesn't hate you. But he doesn't like you. At least you are still alive... For now...
Awarded: August 24th, 2011 04:03 PM
Participant of the GT8 Tours
Piplup is interested in your true potential, we know you have it in you!
Awarded: September 15th, 2011 06:20 PM
NONONO
Stop asking or this is the last emblem you'll get.
Awarded: December 8th, 2011 09:45 AM
Ain't got no chat in here :P
Gee, even though the chat's probably deader than dead at times, you still participated in the Holiday Hop's Holiday Skype!
Awarded: January 4th, 2012 12:13 PM
Badass Battler
This member participated in one of the Battle Center's Community Days. We hope you had fun!
Awarded: January 7th, 2012 05:44 PM
Still finding your way
You participated in Winter Photography during the Holiday Hop. Maybe next time you'll find your way to a nice cozy cabin!
Awarded: January 9th, 2012 03:34 AM
Member of the Year All-stars
You may not have won Member of the Year in Member of the Year, but you did place something in Member of the Year for one year.
Awarded: January 9th, 2012 04:00 AM
Not in for the Coffee
This member frequently comes to #thepokecommunity. Something tells us that it's not for a latte.
Awarded: January 9th, 2012 04:37 PM
Chit-Chatterbox
You always have a word or two about Pokémon to share with us. Is that all you think about?
Awarded: March 9th, 2012 03:44 PM
The 1000-line Order
This #thepokecommunity chatter has said over 1000 lines at the chat. Talk about an active chatter!
Awarded: March 26th, 2012 01:03 PM
Do the Creep
For those of us that do the creep, whether or not it be intentional! Do the creep, huuuuuuh!
Awarded: May 23rd, 2012 04:07 AM
iStalker
You’ve obviously been taking lessons from Went.
Awarded: May 23rd, 2012 07:38 AM
Master Deckbuilder!
You took first place in one of PC's deckbuilding competitions! You just may be the best there is!
Awarded: September 10th, 2012 04:56 AM
#thepokecommunity was glad to have you
Thanks for participating in the fun at #tpc during PCX!
Awarded: November 18th, 2012 10:56 AM
Green's Chatty Gossip Award
This member chats. A lot. At #thepokecommunity. And? That's probably a good thing - even Green agrees.
Awarded: December 25th, 2012 12:01 AM
Zapping The World By Storm
This member helped to make the Pokémon X and Pokémon Y forum a huge initial success.
Awarded: January 8th, 2013 01:35 PM

All times are UTC. The time now is 12:13 AM.


Style by Perdition Haze, artwork by Sa-Dui.
Like our Facebook Page Follow us on TwitterMessage Board Statistics | © 2002 - 2013 The PokéCommunity™, pokecommunity.com.
Pokémon characters and images belong to Pokémon USA, Inc. and Nintendo. This website is in no way affiliated with or endorsed by Nintendo, Creatures, GAMEFREAK, The Pokémon Company, Pokémon USA, Inc., The Pokémon Company International, or Wizards of the Coast. We just love Pokémon.
All forum styles, their images (unless noted otherwise) and site designs are © 2002 - 2013 The PokéCommunity / PokéCommunity.com.
PokéCommunity™ is a trademark of The PokéCommunity. All rights reserved. Sponsor advertisements do not imply our endorsement of that product or service. User posts belong to the user.