Skip to content

Commit cf896c4

Browse files
authored
DOCSP-30572 Table Filters Drawer (#8)
* DOCSP-30572 Table Filters * * * apply table UI bold * guilabel role * IR Feedback * IR Feedback
1 parent ef87132 commit cf896c4

File tree

4 files changed

+83
-1
lines changed

4 files changed

+83
-1
lines changed

source/mapping-rules/mapping-rules.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
.. _rm-mapping-rules:
2+
13
=============
24
Mapping Rules
35
=============
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
.. _rm-create-mapping-rules:
2+
13
===========================
24
Create Rule From Relational
35
===========================
Lines changed: 43 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,45 @@
11
===================
22
Apply Table Filters
3-
===================
3+
===================
4+
5+
6+
You can use table filters to migrate specific subsets of your table data.
7+
Table filters allow you to apply SQL where and row limit clauses
8+
when pulling data from your table.
9+
10+
Before you Begin
11+
----------------
12+
13+
Table filters are applied while you are creating mapping rules. See
14+
:ref:`<rm-create-mapping-rules>` for more details.
15+
16+
You can apply one filter per table. Each filter can have a SQL where
17+
clause, a row limit clause, or both.
18+
19+
Steps
20+
-----
21+
22+
23+
#. From the :guilabel:`Schema model` pane, click the table that you want to apply a filter to.
24+
#. On the :guilabel:`Filter on` section in the edit :guilabel:`mapping rule` pane, click :guilabel:`+ Add`.
25+
#. Under the :guilabel:`SQL query` header, enter a SQL where criteria. The
26+
SQL you specify must be ANSI SQL compliant with your relational database.
27+
The following are examples of SQL where clauses used to apply
28+
:guilabel:`SQL query` table filters:
29+
30+
- ``LASTNAME LIKE '%SMITH%'``
31+
- ``LASTNAME = 'SMITH'``
32+
- ``LASTNAME IN('SMITH')``
33+
- ``LASTNAME IN(SELECT LASTNAME FROM ASIA_CUSTOMERS WHERE ID < 100000)``
34+
- ``LASTNAME IN(SELECT LASTNAME FROM ASIA_CUSTOMERS
35+
WHERE PAYMENT_DATE >= 05/25/2015)``
36+
37+
#. (Optional) Under the :guilabel:`Row limit` header, click the :guilabel:`Limit number of rows`
38+
radio button and enter a value. This applies a limit clause at the
39+
end of your SQL query.
40+
#. Click :guilabel:`Save and close`.
41+
42+
Learn More
43+
----------
44+
45+
:ref:`<rm-mapping-rules>`

source/table-filters/table-filters.txt

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,42 @@
22
Table Filters
33
=============
44

5+
In a migration project, you can apply table filters to control the
6+
volume of data migrated from each table. You can apply table filters
7+
when you configure the mapping rules from the relational schema model.
8+
9+
Table filters allow you to:
10+
11+
- Migrate your data in logical batches.
12+
- Limit the read operations on your source database.
13+
- Create test environments before migrating your entire database.
14+
15+
Table Filter Types
16+
------------------
17+
18+
You can apply one filter per table. Each filter can have a SQL where
19+
clause, a row limit clause, or both.
20+
21+
.. list-table::
22+
:header-rows: 1
23+
24+
* - Filter Component
25+
- Description
26+
- Example
27+
- SQL Syntax
28+
* - SQL
29+
- Apply a SQL where clause to the tables database query.
30+
- Only the customers who have a last name of Smith.
31+
- ``WHERE LASTNAME = 'SMITH'``
32+
* - Row limit
33+
- Apply a SQL limit clause to the tables database query.
34+
- Only migrate the top 100 rows.
35+
- ``... LIMIT 100``
36+
* - Both
37+
- Apply a SQL where clause and a limit clause to the tables database query.
38+
- Only 100 rows for customers who have a last name of Smith.
39+
- ``WHERE LASTNAME = 'SMITH' LIMIT 100``
40+
541
.. toctree::
642
:titlesonly:
743
:hidden:

0 commit comments

Comments
 (0)