How can I copy CTRL-C content from a single cell in DBISQL? - sa

I use DBISQL on Win32 on 12.0.1.3769.
Usually, I am interested in copying cell content from the Result pane of DBISQL, not the contents of the complete row or the row headers.
I can do this by using the context menu and choose "copy data / cell" (I use a localised version, the English words may be different). But I would certainly like to use CTRL-C to copy only the contents of selected cells. As stated, however, CTRL-C copies the full row(s) including the header of the column. And all too often I try to insert a single number in a particular window, then insert an entire database unintentionally instead...
Question: Can I use another shortcut or is there a choice in the result pane to change the meaning of CTRL-C?

It looks like Ctrl-C maps to Copy Data Rows effectively, while you (and I!!!) would like to MALL map it to Copy Data-Columns, as defined here: copying columns, rows and cells in an Interactive SQL result collection.
The complete list of Interactive SQL Keyboard Shortcuts dates back to 1985... However, even then, cool children's software allows you to change the key tasks (hint, hint:)
Thank you, Volker, for noting how Really Annoying Ctrl-C is [ end sarcasm alert ] ... [ sarcasm alert ] Until now it had been only one of the little irritants of your life such as an alarm that went away before you finished sleeping.

Related

Copying Data in Excel

How can I copy data in Excel, if I have 3000 value and I want to copy data from 100 to 1000 only without dragging?
I tried the dragging option, but it takes a lot of time
You can use goto (Keyboard shortcut is Ctrl+g), and enter a Range, e.g. A100:E1000 which "goes to" and selects that range.
To be honest, dragging ain't the worst for only 900 rows :). Also there are keyboard shortcuts to select with navigation ... so for example, you can hold the shift key while you use the page up and page down keys, as well as arrow keys. You can also use filtering, in certain situations. If your desired range stands by itself, a handy shortcut is ctrl+shift+spacebar to select an entire contiguous range all at once.

How can I bulk search and find data with slight differences in different rows?

There is something I want to do; but i don't know if it is possible.
I want to know if I can do what I want to do with EmEditor or something else.
You can find an example of what I want below.
Example Picture:
• The data on the left does not have the full name.
• The data on the right are those with the full name.
I present a small video to express what I want clearly.
Please watch the video first and then see the sample files where you can try how to do what I want.
Sample Video
Sample Files
The file on the right contains much more data than the file on the left.
That's why the first thing that comes to mind is; so sorting is useless.
For example, the data in the 1st row of the data on the left; corresponds to row 2 of the data on the right.
So no one has the same row.
That's why sorting doesn't work; and I need to search the left side data one by one inside the right side data and find the full name.
FOR INSTANCE:
On the left: 10-infographic-solutions-part-1
On the right: 10-infographic-solutions-part-1-D5DADA
Instead of searching all of them one by one, I want to automatically find the left-hand data among the right-hand data.
I thought this might be possible with EmEditor; but I don't know how.
If this is possible I would like to know how.
Also, there is one more thing I want to know.
I have something to add to the end of each line; but I can't put a bulk cursor at the end of all of them.
How can I do this with EmEditor?
I hope I was able to express clearly what I wanted.
If there is anything that confuses you, please let me know.
You can use Advanced Filter to find multiple strings combined with Logical Disjunction (OR). To do this:
Open Missing Data.txt with EmEditor, select all (Ctrl+A), and copy all the text to the Clipboard (Ctrl+C).
Open Full Data.txt, and click the Advanced Filter button on the Filter toolbar.
Click in the list box of the Advanced Filter dialog box, and press Ctrl+V to paste the Clipboard contents to the list box.
While all the items in the list box are selected, make sure the Match Case, (None), and Logical Disjunction (OR) options are selected, but no other options are selected.
Click the Filter button.
You didn't write what you want to do after searches, but if you want to remove all the matched lines from Full Data.txt:
Click the Abort button if you are already filtering. Click Bookmark button, and Close to dismiss the dialog box.
Right-click on the left edge of the editor (or select Edit menu - Bookmarks), and select Delete Bookmarked Lines.
As for selecting the end of each line, you can drag Mouse while pressing Alt to make a zero-width vertical selection at right (or press Alt+E, E to make a vertical selection, and press End). See Multiple Selection Editing for more information.

Delete all the cells of the Databricks Notebook

I am working on Databricks notebook for some of the spark work that I am doing. I am using notebook just as a proof of concept work initially and then organized that so that I can create jar out of it. As I am doing POC I try adding lot of cells to experiment different ways. Over a period of time the notebook has large number of cells and most of the stuffs is not required as I have organized that and move to a finalized notebook/Jar code. I am deleting the cells one by one but that can be time consuming. So I just wanted to know if there is a way to delete all the cells from the notebook at one.
There is one option at the top of the notebook that says delete cells but when I click on that it just deletes the single cell and not all the cells from the notebook.
Snapshot of the top UI where I see option of delete cells is as below :
When you work with Databricks notebooks, you can work in the two modes, similar to the VI editor:
Edit mode, when you edit the code of the individual cells
Command mode - in this case, you're working not with the code, but with the cells, so you can select several cells at once, cut/copy/paste/delete them, etc. (see documentation or click on the Shortcuts in the ? item of UI).
From the documentation you will see that in the command mode (press ESC to enter into it) you can select all cells, or you can use Shift + cursor to select several cells, and then you can press d two times, and this will trigger deletion of the selected cells.
After I went through #AlexOtt answer I tried that using the UI and it worked.
If you want to delete all the cells in a notebook then first you need to click on the select all cells option in the context menu. this would select all the cells that are present in the notebook and now if you select the option of delete cells then it would delete all the cells.
This was confusing as the option was showing text as delete cells and deleting only the cell that had the cursor but now I know how I can do it, UI options makes sense but could have been more user friendly.

Create Excel VBA to delete specific text from cell in one column

I am trying to create an Excel VBA that would delete only a specific part of the cell in only one column.
In Column A, I have a directory values:
For example:
Directoryof K:\data\Admin\
What I would like to do is remove the "Directoryof" from all the cells in column A and leave only the remaining text that follows it.
To create a macro to perform the above follow the below steps:
Click the "Developer" tab on the top menu.
You will find an option "Record Macro".
Click the Record Macro ->
a. A dialog box appears, give your macro a name
b. Shortcut key (if you want) can give by pressing (shift and any key such as
letters)
c. Store macro in : This workbook (this allows your macro to run on this sheet).
Click on "Use Relative References".
Once you are done, just perform the delete operation ( by removing the portion you do not want) on one of the column so that the macro may record the process which you are performing.
Once done, below at the lowest pane you will find Stop Macro option (a small blue square box). Click it to stop the recording of the macro.
Now you are ready with a macro to replicate the same without you performing the operation.
Just goto any other column where you want to perform the operation and click on "Macro" option on the developer tab and then click on your created marco, and you will see the magic happen.
You could probably use regex to accomplish what you are going for. Regular Expressions are often used for finding patterns. If all of your follows the same format, you could break your strings apart into two capture groups with something like:
(.+)([A-Z]:\\.+)
https://regex101.com/r/uD4uJ0/2 <-- this will show you your capture groups
Edit: I updated this link, sorry, originally had the wrong one.
This here How to use Regular Expressions (Regex) in Microsoft Excel both in-cell and loops will show you how to split up capture groups if you are interested.
You could use something like text to columns, fixed width, and split the columns after Directoryof and then copy/paste the values back into column A.
I'm not sure if there's a method to do this without a helper column without VBA. If you can afford to use a second column, you can also use =LEFT(Cell, # of characters) assuming that the part you want to strip off is always "Directoryof" and then copy/paste values back into column A.

is there a shortcut to open filter>contains box in excel?

I use filters a lot.
Filter > contains option
But it is slow because everytime i need to do several clicks.
So, my question is, is there a shortcut to open filter, drop down, contains window?
Assuming you start with filtered data already, you need to have the header cell selected. From there: ALT+DOWN, F, A.
If the filter is not already created then throw in a CTRL+SHIFT+L at at the start.
If you are not in the header row, some combination of CTRL+ARROW keys can get you there. Ideally you have a block of data and can use CTRL+UP if you start in the correct column.

Resources