sql server - need help in TSQL query that select policy id = 1 -


i want in query selects data having policy_id 1

the query using is

select policy_id policy_dim policy_id '%1'; 

the problem select data having 1 @ last digit eg 21, 31 ,41

the data in data warehouse policy id

 policy_id  1  01  001  0001 

try this:

select policy_id policy_dim cast (policy_id int) = 1; 

Popular posts from this blog

php - How should I create my API for mobile applications (Needs Authentication) -

5 Reasons to Blog Anonymously (and 5 Reasons Not To)

Google AdWords and AdSense - A Dynamic Small Business Marketing Duo