Você está na página 1de 8

How to run SQL query executor in Marg

How To Run SQL Query Executor In Marg

Case1: Uses Item Wise Bill Detail


1st
Step

1. Update Software to with latest version from www.margcompusoft.com

2nd
Step

2. Login with Admin ID Go To Marg/Counter Control Room as shown below and do the following setting
Gateway of Marg or Counter =>Master=>Marg Setup=>Self Format=>

3rd
Step

Email: support@margcompusoft.com 1|P a ge Web:www.margcompusoft.com


How to run SQL query executor in Marg

4th
Step

3. Enter Password.

Enter Here Password

5th
Step

4. Now create Query.

Click Here

Email: support@margcompusoft.com 2|P a ge Web:www.margcompusoft.com


How to run SQL query executor in Marg

6th
Step
5. Now SQL Query Form opens.

a) Add New / Modify / Delete / Save /Cancel


Definition of abbreviations used
a. “Add New”= If want create new Query Now click here.
b. “Modify “= If Want modify existing Query Now click here.
c. “Delete”= If want to delete existing Query Now click here.
d. “Save”= For Save Changes Now click here.
e. “Cancel “= For Exit or cancel Now click here.
b) Code / Name
Definition of abbreviations used
a. “Code”= Type here your Query Code of short form at 2 character.
b. “Name”= Type here your Query full name at 25 character.
c) Date Reqd No/Yes
Definition of abbreviations used
a. “No”= While run SQL Query Date selection not required
b. “Yes”= While run SQL Query Date Selection Required
d) Type of Paste your SQL Query
Definition of abbreviations used
You can type here SQL Query.

Note: - If you trying to run INSERT, UPDATE, DELETE, ALTER, INTO command not allowed.

Use <SQL_DT1> for Date From & <SQL_DT2> for Date to.

Email: support@margcompusoft.com 3|P a ge Web:www.margcompusoft.com


How to run SQL query executor in Marg

7th
Step
6. See the example.

Click Here For


Save Changes

Click Here For Exit


this Window

Type SQY Query

Find Below mentions SQL


Query Format

 Now I have select 3 data file and also use date command with formula system.

SELECT
A.VCN,A.DATE,B.MAILNAM,B.CITY,C.PRODUCT,C.PACKING,A.Q
8th
TY,A.FREE,A.QTY*A.RATE AS AMOUNT FROM DIS A,ORDER AS
Step
B,PRO AS C WHERE C->CODE=A.CODE AND A.CODEP=B-
>ORDNO AND BETWEEN(A.DATE,<SQL_DT1>,<SQL_DT2>)
7. Now set User wise power authority SQL Query Executor.
Login with Admin ID Go to Marg/Counter Master=>Change Operator Powers=>shown below and do the following
setting. (Gateway of Marg or Counter => Master=>Change Operator Powers=>)

Click Here

9th
Step

Email: support@margcompusoft.com 4|P a ge Web:www.margcompusoft.com


How to run SQL query executor in Marg

10th
8. Search SQL Query. Step

Search “SQL Query”

11th
Step
9. Now Enable or disable SQL Query Executor at use wise.
Put “Y”
After That Re-login

12th
Step
10. Now Execute the SQL Query.
Gateway of Marg or Counter =>Daily Report=>SQL Query Executor=>

Click Here For SQL


Query Executor

SQL Query Executor Beta Version


For Testing & Use! Enjoy Free
version upto 24-08-2014

Email: support@margcompusoft.com 5|P a ge Web:www.margcompusoft.com


How to run SQL query executor in Marg

12th
Step

11. Now select Query and enter date range if report generates date wise. Enter Here Date Range
From & To

Click Here For Execute


Selected Query

13th
Step

12. Now see the result.


Type Here Date Range.

Click Here For Export


to EXCEl file

a. Export Output (Now you can export output DBF/Text/CSV/Excel/XML)


b. If want delete any column just select column name and click on delete button.
c. If want to you shift column left to right or right to left or any after column just click on column and do
the Draw and Drop thru mouse.

Email: support@margcompusoft.com 6|P a ge Web:www.margcompusoft.com


How to run SQL query executor in Marg

14th
Step

13. How to export…

Select Path

Type File Name

Click Here For


Export File

15th
Step

14. SQL Query Executor Beta version for testing Use! Only 10 rows allowed.

SQL Query Executor Beta


version for testing Use!
Only 10 rows allowed.

16th
Step

File Saved Successfully!

Email: support@margcompusoft.com 7|P a ge Web:www.margcompusoft.com


How to run SQL query executor in Marg

17th
Step

15. Now open exported file.

Thank You
Email: support@margcompusoft.com 8|P a ge Web:www.margcompusoft.com

Você também pode gostar