Module3 Day4 Task1 StepByStepGuide Trisha
Module3 Day4 Task1 StepByStepGuide Trisha
PREPARED BY:
TRISHA NICOLE L. REMINAJES
PRACTICE TASK:
To successfully complete tasks on queries in Module 3, use data processor
Download Query Console QueryConsole_en.epf for debugging your queries.
Make sure you create queries for the provided infobase Download Infobase for
Queries InfoBaseForQueries.dt.
You can add user data for this database to let queries work as designed.
In case you use a different information database for these tasks, you get zero
points.
TASK 1:
A) Create a query to retrieve from catalog Products all product names except Super PC.
B) Create a query to retrieve from catalog Products all product names except the product
specified with a parameter.
C) Create a query to retrieve all entries from the table section of a specific product in catalog
Products per specified parameter (product).
SOLUTIONS:
A) Create a query to retrieve from catalog Products all product names except Super PC.
→
→
Step 1: Restore the infobase for Queries InfoBaseForQueries.dt Go to 1C: Enterprise
Mode Go and open the File or Use the shortcut key Ctrl+O.
01
Step 2: Open the Query Console.epf file. Then a warning will pop-up → Click Yes.
02
Step 3: Query console will appear. Click the Query Text to add our queries.
03
DEMONSTRATION OF SOLUTIONS:
Execute the queries
Step 1: To check if the queries are working, Click the EXECUTE button on the top.
Step 2: Go to Query Results and you will see the list containing all products except Super PC.
04
Step 3: To check if the list of products are complete not including the Super PC, Go check
the Catalog Products.
SOLUTIONS:
B) Create a query to retrieve from catalog Products all product names except the product
specified with a parameter.
Step 1: Repeat the Step 1 to 3 we did to Task 1-A.
05
Step 2: Add the following to the Query text:
To create a query to list of all products except the Super PC, we need to get the catalog
Products and place them in FROM, and use AS to create an alias for it. On the inside of
SELECT, get or select the field for the product names, then use AS to create an alias for
this as well. Also, use WHERE to add condition to select all products except the Super PC.
But this time, we are going to use Parameter, type Products.Description <> &Product. The
"&" will indicate that the Product is a parameter.
DEMONSTRATION OF SOLUTIONS:
Step 1: To check if the queries are working, Click the EXECUTE button on the top.
06
Step 2: As we click the Execute, the prompt will message "Found parameters were added
automatically". Go to Query Parameter and you'll see the parameter created
automatically, the user just need to select the Product he/she desired not to be
included in the list. Then click EXECUTE and check the results.
07
SOLUTIONS:
C) Create a query to retrieve all entries from the table section of a specific product in catalog
Products per specified parameter (product).
To create a query to retrieve the table section of a specific product, we need to get the catalog
Products and place them in FROM, and use AS to create an alias for it. On the inside of
SELECT, get or select the field for the product name and table section, then use AS to create
an alias for this as well. Also, use WHERE to add condition to select a specific product. We
are going to use Parameter, type Products.Description <> &Product. The "&" will indicate
that the Product is a parameter.
08
DEMONSTRATION OF SOLUTIONS:
Execute the queries
Step 1: To check if the queries are working, Click the EXECUTE button on the top.
Step 2: As we click the Execute, the prompt will message "Found parameters were added
automatically". Go to Query Parameter and you'll see the parameter created
automatically, the user just need to select the Product he/she desired to get the table
section of a specific product.
09
Step 3: Click EXECUTE and check the Query Results.
10