sql server - How to change the output in 1 SQL column to be the same result in every row -


below sql statement:

select glm_prft_ctr store, glm_account account, glm_group class, glm_description description,  glm_amt_period0 + glm_amt_period1 + glm_amt_period2 + glm_amt_period3 + glm_amt_period4 balance gl_master_in glm_prft_ctr = 410 or glm_prft_ctr = 14101 , glm_series = 'fy12' group glm_account, glm_description, glm_prft_ctr, glm_group, glm_amt_period0, glm_amt_period1, glm_amt_period2, glm_amt_period3, glm_amt_period4 

below result , prompted question:

store   account class   description         balance 410     36000   re      retained earnings   396367.61 14101   36000   re      retained earnings   -20505.93 

i need have result store 7410 rows returned.

select 7410 store,         glm_account account,         glm_group class,        glm_description description,         glm_amt_period0 + glm_amt_period1 + glm_amt_period2 + glm_amt_period3 + glm_amt_period4 balance gl_master_in glm_prft_ctr = 410 or glm_prft_ctr = 14101 , glm_series = 'fy12' group glm_account, glm_description, glm_prft_ctr, glm_group, glm_amt_period0, glm_amt_period1, glm_amt_period2, glm_amt_period3, glm_amt_period4 

Comments

Popular posts from this blog

delphi - How to convert bitmaps to video? -

jasper reports - Fixed header in Excel using JasperReports -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -