Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. David Edwards

David Edwards

Community Learner
Share
48Questions
44Answers
94.9KViews on questions

How to order and partition by multiple columns?

Use ROW_NUMBER() function better for order and partition by multiple columns. SELECT name, category, ROW_NUMBER() OVER (PARTITION BY name, category ORDER BY name, category) unique_id FROM test; name | category | unique_id :--- | :------- | --------: A | Alpha | 1 A | Alpha | 2 A | Alpha | 3 A | Beta | 1 A | Beta | 2 B…

SQL Server

Answered Mar 20, 2023 · 23.7K Views Read answer →

What to do in such a case - failed to execute 'todataurl' on 'htmlcanvaselement': tainted canvases may not be exported.

In such a scenario - failed to execute 'todataurl' on 'htmlcanvaselement': tainted canvases may not be exported. I took your code and used 'plyr' CDN instead of static resource and it worked for me. Below is my working code which did not show the error thum:50 Uncaught DOMException: Failed to execute 'toDataURL' on…

Salesforce

Answered Mar 6, 2023 · 1.7K Views Read answer →

How to get the code coverage catch block in test class?

We can use validation rules here to get the code coverage caught in test class. Check Contact validation rules which can fire at contact update. Create contact with those values which will be used to fire validation rules. So you can get DML exceptions here. if you don't have any validation rules to fire at Contact…

Salesforce

Answered Feb 23, 2023 · 3.7K Views Read answer →

What is the VC dimension?

The definition of VC dimension is: if there exists a set of n points that can be shattered by the classifier and there is no set of n+1 points that can be shattered by the classifier, then the VC dimension of the classifier is n. The definition does not say: if any set of n points can be shattered by the classifier...…

Data Science

Answered Feb 14, 2023 · 1.1K Views Read answer →

How can I get the train test validation split?

To get the train test validation split, you could just use sklearn.model_selection.train_test_split twice. First to split to train, test and then split train again into validation and train. Something like this: X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.2, random_state=1) X_train, X_val,…

Data Science

Answered Feb 13, 2023 · 840 Views Read answer →

More members from the Salesforce community

Learners asking and answering questions on the same topics — follow their questions and join in.

Latest Salesforce Blogs

Guides, tips and career advice on Salesforce from JanBask experts.

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.