Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Help with concatenation of BIG integers

Help with concatenation of BIG integers

Help with concatenation of BIG integers

Hello All
Can you help me with concatenation of BIG INT

<select distinct
CASE when pl.firstname IS NULL then '' else pl.firstname END as 'First Name',
CASE when pl.lastname IS NULL then '' else pl.lastname END as 'Last Name',
CASE when pl.playerId IS NULL then '' else pl.playerId END as 'Players ID',

CASE when pc.Cardid IS NULL then '' else max(cast(right('3000000000', 10) as BIGINT))+ convert(nvarchar(9), pc.Cardid) END as'Card ID'
from tPlyr pl
LEFT join tPlEvaluationHistory pcs on pl.playerid = pcs.playerid
left join tPlayerCard pc on pcs.playerid = pc.PlayerId
--WHERE pc.Cardid <> ' '
Group by pl.firstname,pl.lastname,pl.playerId,pc.Cardid >

However, the Cardid field is given me 0 though it should be giving me 3000000000 + 9 digits that is, '3000000000123456789'

fname lstname Playrid Cardid
ZE lastman 999999 0
DAN Redman 999999 0

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close