Solved

How do I create a 'from' 'to' in the Command parameter?

Posted on 2011-09-29
3
285 Views
Last Modified: 2012-05-12
sample of queryin command:
,D.Dia
,D._Session_
,D._Modified_
,D._Status_
,D._Created_

FROM dbo."Ventas en Pesos" A
INNER JOIN dbo.Dim_Categoria B
ON A.Dim_Category_dKey = B.Dim_Category_dKey  
INNER JOIN Dim_Geografica C
ON A.Dim_Geografica_dKey = C.Dim_Geografica_dKey
INNER JOIN Dim_Tiempo D
ON A.Dim_Tiempo_dKey = D.Dim_Tiempo_dKey

WHERE C.Compania ={?Compania}
AND C.Region ={?Region}
AND C.Tienda = {?Tienda}
AND B.Area = {?Area}
AND B."Nivel Proceso" = {?Nivel Proceso}
AND B.Categoria = {?Categoria}
AND FROM D.Semana={?Semana}
TO D.Semana={?Semana}

What is the proper syntax and how do I setup the command prompt parameter for

AND FROM D.Semana={?Semana}
TO D.Semana={?Semana}

0
Comment
Question by:garyjgs
  • 2
3 Comments
 
LVL 100

Expert Comment

by:mlmcc
ID: 36817085

Is that a rnge parameter?
D.Semana IN {?Semana}

Otherwise use a start and end parameters

AND D.Semana >={ ?Start}
AND D.Semana< ={?End}

mlmcc

0
 

Author Comment

by:garyjgs
ID: 36818126
That did not want to work.  When I create the parameter on the command prompt, what Name is it looking for?
0
 
LVL 100

Accepted Solution

by:
mlmcc earned 500 total points
ID: 36818359
WHat do you mean NAME?
If you mean the popup that says NAME it wants you to give the parameter a NAME

mlmcc
0

Featured Post

Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question