Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Dipesh Bhardwaj

Dipesh Bhardwaj

★ JanBask Expert
Share
44Questions
88Answers
87.8KViews on questions

How to convert a list to a list of lists in Javascript?

For normal browsers, to convert a list to a list of lists in Javascript, you probably want Array.prototype.reduce. let group = (values) => Object.values( // Convert { a: b } to just [b] values.reduce( (p, v) => ( // p = previous value, v = next value (p[v] ||= []), // Assign p[v] a new array if not yet set…

Salesforce

Answered May 1, 2023 · 1.3K Views Read answer →

Explain the difference - product vs product2.

Products is the label while Product2 is the API name. In apex we use API name that's why you have to use Product2 to create a new instance. Product object is no longer available after API version 8.Product2

Salesforce

Answered Apr 28, 2023 · 2.0K Views Read answer →

How can I schedule batch apex code?

Just saving the class does not schedule batch apex code. You still need to tell the DB to schedule it. I generally write a schedule function within my class so that I can easily call it in one line, that uses my static chron string within the class. Something like this should work global class Scheduler_class…

Salesforce

Answered Apr 20, 2023 · 1.3K Views Read answer →

Are there sql composite keys or compound keys?

Both composite key and SQL compound key describe a candidate key with more than one attribute. According to the Relational Database Dictionary (C.J.Date) they mean the same thing. In ER modelling the term "compound key" also has a more specific meaning. It means a key whose constituent attributes are references to…

SQL Server

Answered Mar 23, 2023 · 1.2K Views Read answer →

How to get last inserted id in sql?

The answer to your question - how to get last inserted id in sql is - Use SCOPE_IDENTITY() if you are inserting a single row and want to retrieve the ID that was generated. CREATE TABLE #a(identity_column INT IDENTITY(1,1), x CHAR(1)); INSERT #a(x) VALUES('a'); SELECT SCOPE_IDENTITY(); Result: ---- 1 Use the OUTPUT…

SQL Server

Answered Mar 17, 2023 · 9.8K Views Read answer →

What is psql table size and row count?

The psql table size appears as entries in pg_catalog.pg_class that have relkind='r' (see the documentation). table name: pg_class.relname schema name: pg_namespace.nspname. Join pg_class.relnamespace to pg_namespace.oid to follow the association between the table and its schema. table size: see…

SQL Server

Answered Mar 13, 2023 · 1.4K Views Read answer →

What does data folder of a company consists of?

Regarding the data folder of a company consists of, these are your binary logs. For some reason, your config file lists: log-bin = 0 Did you mean to disable binary logs? Well, instead, you've simply named them as "0". Which is why you get all these files: 0.000001, 0.00002 etc. If you want binary logging, better name…

SQL Server

Answered Mar 13, 2023 · 1.2K Views Read answer →

How does sql convert date to yyyymmdd?

sql convert date to yyyymmdd by default, as documented in MSDN, if no length is specified for varchar it will default to 30 when using CAST or CONVERT and will default to 1 when declared as a variable. To demonstrate, try this : DECLARE @WithLength varchar(3),@WithoutLength varchar; SET @WithLength = '123'; SET…

SQL Server

Answered Mar 13, 2023 · 1.6K Views Read answer →

What is the maximum size of the s3 bucket?

The answer to your question - what is the maximum size of the s3 bucket- There's not such a policy as far as I know. That being said, you could trigger a lambda and then make this lambda check the properties of your bucket and then you would perform any actions you need.

Salesforce

Answered Mar 7, 2023 · 1.3K 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.