How to get only the first rows from query results?
Sometimes you need just to fetch first few rows from the query results, not the whole results set. Different databases offer functions to limit the rows displayed from the query results. Continue reading
How to deal with a single quote character in SQL?
When trying to execute a statement with a single quote (or apostrophe) inside a string in a SQL client:
SELECT * FROM employees WHERE name = 'd'Artagnan'
you get an error:
ORA-00933: SQL command not properly ended
How to enable auto replace shortcuts in Oracle SQL Developer?
In the Auto replace shortcuts in Toad post I showed you how to add auto-replace shortcuts in a Toad client. You can acheive the same in Oracle SQL Developer – here that feature is called SQL Editor Code Templates.
How to add a code template shortcut in SQL Developer?
First, go to Tools / Preferences:
Choose Database / SQL Editor Code Templates and click on Add Template button. For example add these two code templates:
saf - SELECT * FROM
scaf - SELECT COUNT(1) FROM
Now to use the auto replace code template type the shortcut and press CTRL and SPACEBAR keys. Shortcut will be replaced with a pre-defined statement.
With versioning control, Informatica PowerCenter stores the previous versions of objects inside them. You can open in workspace any of the previous versions. To do that right-click on the object and select Versioning / View History:
Now you can see the history of all versioned changes with their dates, users, and comments. Select the version you want to preview with right-click and choose Open in Workspace:
Now the session is opened in the workspace (notice the (v2) prefix that indicates the version):
You can do that as well with other objects in Workflow Manager and Workflow Designer. Objects from versioning history will have the prefixes with the version number:
How to change status bar color in Informatica PowerCenter Workflow Monitor?
In Workflow Monitor running and succeeded status bars are by default in similar greenish colors. This can be quite confusing and makes it harder to skim quickly through the statuses of the sessions. To avoid this, you can customize the colors of status bars.
To do that go to Tools / Options and select Gantt Chart tab. Here you can specify two colors for each session (if you choose two different the bar will be a gradient) and color for recovered tasks:
Let’s choose a light green for running sessions to distinguish it from completed sessions:
After changing the colors it’s easier to differentiate the statuses of monitored sessions: